function getOutput(url) {
  //console.log("in getOutput");
  $.ajax({
	  type: "POST",
	  url: "displayImg.php",
	  data: {url:url},
	  complete: function(data){
			//console.log("image downloaded complete");
			ImageLoaded = true;
		}
	});
}
function findBaseName(url) {
    var fileName = url.substring(url.lastIndexOf('/') + 1);
    var dot = fileName.lastIndexOf('.');
    return dot == -1 ? fileName : fileName.substring(0, dot);
}



